
import { da } from "element-plus/es/locales.mjs"
import { get,post } from "../../utils/request"
import {add} from './type'
import { number } from "echarts"
export const administratorrolelist = (data:object) =>{
    return get('administratorrole/list',data)
}
// 单删
export const administratorroledelete = (id:number) =>{ 
    return get('administratorrole/delete',{id:id});
}
// 添加
export const administratorroleadd = (data:add) =>{ 
    return post('administratorrole/add',data);
}

//获取权限
export const menulist = (id?:number) =>{
    return get('menu/list',{roleid:id})
}


